// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_SUPPLIER
// * CreateDate    : 2011/11/17 14:17:08
// * Creater       : CodeSmith
// * LastChangeDate: 2011/11/17 14:17:08
// * LastChanger   : 2011/11/17 14:17:08
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstSupplierTable : TableInfo
    {
		public const string C_TableName = "MST_SUPPLIER";
		
		public const string C_SUPPLIER_ID = "SUPPLIER_ID";
		public const string C_SUPPLIER_CODE = "SUPPLIER_CODE";
		public const string C_SUPPLIER_NAME = "SUPPLIER_NAME";
		public const string C_SUPPLIER_FULL_NAME = "SUPPLIER_FULL_NAME";
		public const string C_CONTACT = "CONTACT";
		public const string C_CONTACT_PHONE = "CONTACT_PHONE";
		public const string C_COUNTORY = "COUNTORY";
		public const string C_PROVINCE = "PROVINCE";
		public const string C_CITY = "CITY";
		public const string C_ADDRESS = "ADDRESS";
		public const string C_ZIP_CODE = "ZIP_CODE";
		public const string C_EMAIL = "EMAIL";
		public const string C_TELEPHONE = "TELEPHONE";
		public const string C_DEFAULT_CURRENCY = "DEFAULT_CURRENCY";
		public const string C_BANK = "BANK";
		public const string C_BANK_ACCOUNT = "BANK_ACCOUNT";
		public const string C_TAX_ACCOUNT = "TAX_ACCOUNT";
		public const string C_STATUS = "STATUS";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_LEVEL = "LEVEL";
		public const string C_LEGAL_PERSON = "LEGAL_PERSON";
		public const string C_REGISTERED_CAPITAL = "REGISTERED_CAPITAL";
		public const string C_PRODUCT_SCOPE = "PRODUCT_SCOPE";
		public const string C_REGISTERED_ADDRESS = "REGISTERED_ADDRESS";
		public const string C_QUANTITY_SYSTEM = "QUANTITY_SYSTEM";
		public const string C_ALLOW_PRODUCTING = "ALLOW_PRODUCTING";
		public const string C_WEBSITE_URL = "WEBSITE_URL";
		public const string C_SUPPLIER_TYPE = "SUPPLIER_TYPE";
		public const string C_PAYMENT_TYPE = "PAYMENT_TYPE";
		
		public MstSupplierTable()
        {
            _tableName = "MST_SUPPLIER";
        }
		
		protected static MstSupplierTable _current;
        public static MstSupplierTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstSupplierTable();

            _current.Add(C_SUPPLIER_ID, new ColumnInfo(C_SUPPLIER_ID,"SupplierId", true, typeof(string)));
            _current.Add(C_SUPPLIER_CODE, new ColumnInfo(C_SUPPLIER_CODE,"SupplierCode", false, typeof(string)));
            _current.Add(C_SUPPLIER_NAME, new ColumnInfo(C_SUPPLIER_NAME,"SupplierName", false, typeof(string)));
            _current.Add(C_SUPPLIER_FULL_NAME, new ColumnInfo(C_SUPPLIER_FULL_NAME,"SupplierFullName", false, typeof(string)));
            _current.Add(C_CONTACT, new ColumnInfo(C_CONTACT,"Contact", false, typeof(string)));
            _current.Add(C_CONTACT_PHONE, new ColumnInfo(C_CONTACT_PHONE,"ContactPhone", false, typeof(string)));
            _current.Add(C_COUNTORY, new ColumnInfo(C_COUNTORY,"Countory", false, typeof(string)));
            _current.Add(C_PROVINCE, new ColumnInfo(C_PROVINCE,"Province", false, typeof(string)));
            _current.Add(C_CITY, new ColumnInfo(C_CITY,"City", false, typeof(string)));
            _current.Add(C_ADDRESS, new ColumnInfo(C_ADDRESS,"Address", false, typeof(string)));
            _current.Add(C_ZIP_CODE, new ColumnInfo(C_ZIP_CODE,"ZipCode", false, typeof(string)));
            _current.Add(C_EMAIL, new ColumnInfo(C_EMAIL,"Email", false, typeof(string)));
            _current.Add(C_TELEPHONE, new ColumnInfo(C_TELEPHONE,"Telephone", false, typeof(string)));
            _current.Add(C_DEFAULT_CURRENCY, new ColumnInfo(C_DEFAULT_CURRENCY,"DefaultCurrency", false, typeof(string)));
            _current.Add(C_BANK, new ColumnInfo(C_BANK,"Bank", false, typeof(string)));
            _current.Add(C_BANK_ACCOUNT, new ColumnInfo(C_BANK_ACCOUNT,"BankAccount", false, typeof(string)));
            _current.Add(C_TAX_ACCOUNT, new ColumnInfo(C_TAX_ACCOUNT,"TaxAccount", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_LEVEL, new ColumnInfo(C_LEVEL,"Level", false, typeof(string)));
            _current.Add(C_LEGAL_PERSON, new ColumnInfo(C_LEGAL_PERSON,"LegalPerson", false, typeof(string)));
            _current.Add(C_REGISTERED_CAPITAL, new ColumnInfo(C_REGISTERED_CAPITAL,"RegisteredCapital", false, typeof(decimal)));
            _current.Add(C_PRODUCT_SCOPE, new ColumnInfo(C_PRODUCT_SCOPE,"ProductScope", false, typeof(string)));
            _current.Add(C_REGISTERED_ADDRESS, new ColumnInfo(C_REGISTERED_ADDRESS,"RegisteredAddress", false, typeof(string)));
            _current.Add(C_QUANTITY_SYSTEM, new ColumnInfo(C_QUANTITY_SYSTEM,"QuantitySystem", false, typeof(string)));
            _current.Add(C_ALLOW_PRODUCTING, new ColumnInfo(C_ALLOW_PRODUCTING,"AllowProducting", false, typeof(string)));
            _current.Add(C_WEBSITE_URL, new ColumnInfo(C_WEBSITE_URL,"WebsiteUrl", false, typeof(string)));
            _current.Add(C_SUPPLIER_TYPE, new ColumnInfo(C_SUPPLIER_TYPE,"SupplierType", false, typeof(string)));
            _current.Add(C_PAYMENT_TYPE, new ColumnInfo(C_PAYMENT_TYPE,"PaymentType", false, typeof(string)));
			
		}
		
		public ColumnInfo SUPPLIER_ID
        {
            get { return this[C_SUPPLIER_ID]; }
        }
		
		public ColumnInfo SUPPLIER_CODE
        {
            get { return this[C_SUPPLIER_CODE]; }
        }
		
		public ColumnInfo SUPPLIER_NAME
        {
            get { return this[C_SUPPLIER_NAME]; }
        }
		
		public ColumnInfo SUPPLIER_FULL_NAME
        {
            get { return this[C_SUPPLIER_FULL_NAME]; }
        }
		
		public ColumnInfo CONTACT
        {
            get { return this[C_CONTACT]; }
        }
		
		public ColumnInfo CONTACT_PHONE
        {
            get { return this[C_CONTACT_PHONE]; }
        }
		
		public ColumnInfo COUNTORY
        {
            get { return this[C_COUNTORY]; }
        }
		
		public ColumnInfo PROVINCE
        {
            get { return this[C_PROVINCE]; }
        }
		
		public ColumnInfo CITY
        {
            get { return this[C_CITY]; }
        }
		
		public ColumnInfo ADDRESS
        {
            get { return this[C_ADDRESS]; }
        }
		
		public ColumnInfo ZIP_CODE
        {
            get { return this[C_ZIP_CODE]; }
        }
		
		public ColumnInfo EMAIL
        {
            get { return this[C_EMAIL]; }
        }
		
		public ColumnInfo TELEPHONE
        {
            get { return this[C_TELEPHONE]; }
        }
		
		public ColumnInfo DEFAULT_CURRENCY
        {
            get { return this[C_DEFAULT_CURRENCY]; }
        }
		
		public ColumnInfo BANK
        {
            get { return this[C_BANK]; }
        }
		
		public ColumnInfo BANK_ACCOUNT
        {
            get { return this[C_BANK_ACCOUNT]; }
        }
		
		public ColumnInfo TAX_ACCOUNT
        {
            get { return this[C_TAX_ACCOUNT]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo LEVEL
        {
            get { return this[C_LEVEL]; }
        }
		
		public ColumnInfo LEGAL_PERSON
        {
            get { return this[C_LEGAL_PERSON]; }
        }
		
		public ColumnInfo REGISTERED_CAPITAL
        {
            get { return this[C_REGISTERED_CAPITAL]; }
        }
		
		public ColumnInfo PRODUCT_SCOPE
        {
            get { return this[C_PRODUCT_SCOPE]; }
        }
		
		public ColumnInfo REGISTERED_ADDRESS
        {
            get { return this[C_REGISTERED_ADDRESS]; }
        }
		
		public ColumnInfo QUANTITY_SYSTEM
        {
            get { return this[C_QUANTITY_SYSTEM]; }
        }
		
		public ColumnInfo ALLOW_PRODUCTING
        {
            get { return this[C_ALLOW_PRODUCTING]; }
        }
		
		public ColumnInfo WEBSITE_URL
        {
            get { return this[C_WEBSITE_URL]; }
        }
		
		public ColumnInfo SUPPLIER_TYPE
        {
            get { return this[C_SUPPLIER_TYPE]; }
        }
		
		public ColumnInfo PAYMENT_TYPE
        {
            get { return this[C_PAYMENT_TYPE]; }
        }
		
		
		
	}
}

